import request from '@/utils/request';

export const getList = (params) => {
  return request({
    url: '/api/zdservercore-bbs/bbsarticle/page',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const getDetail = (AId) => {
  return request({
    url: '/api/zdservercore-bbs/bbsarticle/detail',
    method: 'get',
    params:{
      ...AId
    }
  })
}

export const remove = (data) => {
  return request({
    url: '/api/zdservercore-bbs/bbsarticle/remove',
    method: 'post',
    params:{
      ...data
    }
  })
}

export const add = (form) => {
  return request({
    url: '/api/zdservercore-bbs/bbsarticle/save',
    method: 'post',
    data: form
  })
}

export const submit = (form) => {
  return request({
    url: '/api/zdservercore-bbs/bbsarticle/submit',
    method: 'post',
    data: form
  })
}

export const update = (row) => {
  return request({
    url: '/api/zdservercore-bbs/bbsarticle/update',
    method: 'post',
    data: row
  })
}

export const getRelease = (data) => {
  return request({
    url: '/api/zdservercore-member/zdservercoreMemberTechnology/getMapListByBbsBoardId',
    method: 'get',
    params:{
      ...data
    }
  })
};
